package strangeattractor.core;

import java.awt.Point;

public class StandardOrthographicProjector extends StandardProjector {
	//The next step up from the simple projector, this projector gives a
	//'flat' view of the attractor from a certain point and angle.

	private int width, height;
	
	@Override
	protected Point getStandardCoords(DPoint p, double sx, double sy) {
		return new Point((int)(width/2 + sx*p.x), (int)(height/2 + sy*p.y));
	}

	@Override
	protected double getStandardZ(DPoint p) {
		return p.z;
	}
	
	public StandardOrthographicProjector(int width, int height) {
		super();
		this.width = width;
		this.height = height;
	}
}
